package org.smr.dev.model;

import java.io.Serializable;

public class TableMeta  implements Serializable {

    String tableName;
    String columnName;
    String columnComment;
    String dataType;
    long maxLength;
    int numericPrecision;
    int numericScale;
    String nullAble;
    String columnKey;

    String conditionType;

    String propertyName;
    String entityName;
    String javaType;

    String methodName;
    String isCondition;
    String isInsert;
    String isUpdate;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public long getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(long maxLength) {
        this.maxLength = maxLength;
    }

    public int getNumericPrecision() {
        return numericPrecision;
    }

    public void setNumericPrecision(int numericPrecision) {
        this.numericPrecision = numericPrecision;
    }

    public int getNumericScale() {
        return numericScale;
    }

    public void setNumericScale(int numericScale) {
        this.numericScale = numericScale;
    }

    public String getNullAble() {
        return nullAble;
    }

    public void setNullAble(String nullAble) {
        this.nullAble = nullAble;
    }

    public String getColumnKey() {
        return columnKey;
    }

    public void setColumnKey(String columnKey) {
        this.columnKey = columnKey;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

   

    public String getIsCondition() {
		return isCondition;
	}

	public void setIsCondition(String isCondition) {
		this.isCondition = isCondition;
	}

	public String getIsInsert() {
		return isInsert;
	}

	public void setIsInsert(String isInsert) {
		this.isInsert = isInsert;
	}

	public String getIsUpdate() {
		return isUpdate;
	}

	public void setIsUpdate(String isUpdate) {
		this.isUpdate = isUpdate;
	}

	public String getPropertyName() {
        return propertyName;
    }
    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getConditionType() {
        return conditionType;
    }

    public void setConditionType(String conditionType) {
        this.conditionType = conditionType;
    }

    public boolean shouldHasProperty() {
        if (this.getPropertyName().equals("id")) {
            return false;
        }
        if (this.getPropertyName().equals("createDate")) {
            return false;
        }
        if (this.getPropertyName().equals("updateDate")) {
            return false;
        }
        if (this.getPropertyName().equals("createBy")) {
            return false;
        }
        if (this.getPropertyName().equals("updateBy")) {
            return false;
        }
        if (this.getPropertyName().equals("organId")) {
            return false;
        }
        if (this.getPropertyName().equals("organPath")) {
            return false;
        }
        if (this.getPropertyName().equals("tenantId")) {
            return false;
        }
        if (this.getPropertyName().equals("isDeleted")) {
            return false;
        }
        if (this.getPropertyName().equals("remark")) {
            return false;
        }
        if (this.getPropertyName().equals("parentId")) {
            return false;
        }
        return true;
    }
}
